/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Newgame;

import Global.ConnectDB;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 *
 * @author Administrator
 */
public class Gameplay66 extends javax.swing.JFrame {
    ConnectDB connectdb;
    PreparedStatement st;
    ResultSet rs;
    /**
     * Creates new form Gameplay66
     */
    public Gameplay66() {
        initComponents();
        connectdb = new ConnectDB("1433","localhost","mssqlserver","eproject1","sa","123");
        connectdb.openConnection();
        st = null;
        rs = null;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panel1 = new java.awt.Panel();
        jtf1 = new javax.swing.JTextField();
        jtf2 = new javax.swing.JTextField();
        jtf3 = new javax.swing.JTextField();
        jtf4 = new javax.swing.JTextField();
        jtf5 = new javax.swing.JTextField();
        jtf6 = new javax.swing.JTextField();
        jtf7 = new javax.swing.JTextField();
        jtf8 = new javax.swing.JTextField();
        jtf9 = new javax.swing.JTextField();
        jtf10 = new javax.swing.JTextField();
        jtf11 = new javax.swing.JTextField();
        jtf12 = new javax.swing.JTextField();
        jtf13 = new javax.swing.JTextField();
        jtf14 = new javax.swing.JTextField();
        jtf15 = new javax.swing.JTextField();
        jtf16 = new javax.swing.JTextField();
        jtf17 = new javax.swing.JTextField();
        jtf18 = new javax.swing.JTextField();
        jtf19 = new javax.swing.JTextField();
        jtf20 = new javax.swing.JTextField();
        jtf21 = new javax.swing.JTextField();
        jtf22 = new javax.swing.JTextField();
        jtf23 = new javax.swing.JTextField();
        jtf24 = new javax.swing.JTextField();
        jtf25 = new javax.swing.JTextField();
        jtf26 = new javax.swing.JTextField();
        jtf27 = new javax.swing.JTextField();
        jtf28 = new javax.swing.JTextField();
        jtf29 = new javax.swing.JTextField();
        jtf30 = new javax.swing.JTextField();
        jtf31 = new javax.swing.JTextField();
        jtf32 = new javax.swing.JTextField();
        jtf33 = new javax.swing.JTextField();
        jtf34 = new javax.swing.JTextField();
        jtf35 = new javax.swing.JTextField();
        jtf36 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListDown = new javax.swing.JList();
        jScrollPane2 = new javax.swing.JScrollPane();
        jListAcross = new javax.swing.JList();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(820, 540));
        setPreferredSize(new java.awt.Dimension(820, 540));
        getContentPane().setLayout(null);

        panel1.setPreferredSize(new java.awt.Dimension(332, 293));
        panel1.setLayout(new java.awt.GridLayout(6, 6, 1, 1));

        jtf1.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf1);

        jtf2.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf2);

        jtf3.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf3.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf3);

        jtf4.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf4.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf4);

        jtf5.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf5.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf5);

        jtf6.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf6.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf6);

        jtf7.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf7.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf7);

        jtf8.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf8.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf8);

        jtf9.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf9.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf9);

        jtf10.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf10.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf10);

        jtf11.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf11.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf11);

        jtf12.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf12.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf12);

        jtf13.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf13.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf13);

        jtf14.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf14.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf14);

        jtf15.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf15.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf15);

        jtf16.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf16.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf16);

        jtf17.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf17.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf17);

        jtf18.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf18.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf18);

        jtf19.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf19.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf19);

        jtf20.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf20.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf20);

        jtf21.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf21.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf21);

        jtf22.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf22.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf22);

        jtf23.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf23.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf23);

        jtf24.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf24.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf24);

        jtf25.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf25.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf25);

        jtf26.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf26.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf26);

        jtf27.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf27.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf27);

        jtf28.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf28.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf28);

        jtf29.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf29.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf29);

        jtf30.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf30.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf30);

        jtf31.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf31.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf31);

        jtf32.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf32.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf32);

        jtf33.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf33.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf33);

        jtf34.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf34.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf34);

        jtf35.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf35.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        panel1.add(jtf35);

        jtf36.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N
        jtf36.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jtf36.setToolTipText("");
        panel1.add(jtf36);

        getContentPane().add(panel1);
        panel1.setBounds(50, 100, 300, 275);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/accross_new.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(380, 90, 160, 50);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/down_new.png"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(380, 230, 160, 50);

        jListDown.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(jListDown);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(420, 290, 309, 86);

        jListAcross.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(jListAcross);

        getContentPane().add(jScrollPane2);
        jScrollPane2.setBounds(420, 140, 309, 86);

        jButton1.setText("Submit");
        getContentPane().add(jButton1);
        jButton1.setBounds(360, 460, 73, 23);

        jButton2.setText("Quit");
        getContentPane().add(jButton2);
        jButton2.setBounds(80, 460, 53, 23);

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/alphabet-f-alphabets-81026.jpg"))); // NOI18N
        getContentPane().add(jLabel4);
        jLabel4.setBounds(0, 0, 860, 530);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Gameplay66.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Gameplay66.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Gameplay66.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Gameplay66.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Gameplay66().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JList jListAcross;
    private javax.swing.JList jListDown;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextField jtf1;
    private javax.swing.JTextField jtf10;
    private javax.swing.JTextField jtf11;
    private javax.swing.JTextField jtf12;
    private javax.swing.JTextField jtf13;
    private javax.swing.JTextField jtf14;
    private javax.swing.JTextField jtf15;
    private javax.swing.JTextField jtf16;
    private javax.swing.JTextField jtf17;
    private javax.swing.JTextField jtf18;
    private javax.swing.JTextField jtf19;
    private javax.swing.JTextField jtf2;
    private javax.swing.JTextField jtf20;
    private javax.swing.JTextField jtf21;
    private javax.swing.JTextField jtf22;
    private javax.swing.JTextField jtf23;
    private javax.swing.JTextField jtf24;
    private javax.swing.JTextField jtf25;
    private javax.swing.JTextField jtf26;
    private javax.swing.JTextField jtf27;
    private javax.swing.JTextField jtf28;
    private javax.swing.JTextField jtf29;
    private javax.swing.JTextField jtf3;
    private javax.swing.JTextField jtf30;
    private javax.swing.JTextField jtf31;
    private javax.swing.JTextField jtf32;
    private javax.swing.JTextField jtf33;
    private javax.swing.JTextField jtf34;
    private javax.swing.JTextField jtf35;
    private javax.swing.JTextField jtf36;
    private javax.swing.JTextField jtf4;
    private javax.swing.JTextField jtf5;
    private javax.swing.JTextField jtf6;
    private javax.swing.JTextField jtf7;
    private javax.swing.JTextField jtf8;
    private javax.swing.JTextField jtf9;
    private java.awt.Panel panel1;
    // End of variables declaration//GEN-END:variables
}
